<span>
    <script>
        $(document).ready(function () {
            $('.jui-datepicker').datepicker({
                dateFormat: 'yy-mm-dd'
            });
        });
    </script>
    <input type="text" class="jui-datepicker text input-small datepicker">
</span>